package com.ctsi.ssdc.service;


import com.ctsi.ssdc.domain.LitemallCouponExample;
import com.ctsi.ssdc.model.PageResult;
import org.springframework.data.domain.Pageable;

import com.ctsi.ssdc.domain.LitemallCoupon;

import java.util.List;

/**
 * Service Interface for managing LitemallCoupon.
 *
 * @author ctsi-biyi-generator
 *
 */
public interface LitemallCouponService 
	extends StrengthenBaseService<LitemallCoupon, Integer, LitemallCouponExample>{


    /**
    * GET  /litemallCoupons : get the litemallCoupons firstStringBaseColumn.
    */
    PageResult<LitemallCoupon> findFirstStringColumn(String name ,Pageable pageable);

    List<LitemallCoupon> queryRegister();

    LitemallCoupon findById(Integer couponId);



    List<LitemallCoupon>  queryList(int offset, int limit);
    List<LitemallCoupon> queryList(int offset, int limit, String sort, String order);
    List<LitemallCoupon> queryList(LitemallCouponExample.Criteria criteria, int offset, int limit, String sort, String order);


    List<LitemallCoupon> queryAvailableList(Integer userId, int offset, int limit);

    LitemallCoupon findByCode(String code);
}
